<?php
$this->pageTitle=Yii::app()->name . ' - Request';
$this->breadcrumbs=array(
	'Request',
);?>
<h1>Permintaan Konsumsi</h1>

<p>Isi form permintaan berikut :</p>

<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'request-konsumen-Request-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model_rapat); ?>
	<?php echo $form->errorSummary($model_req_kon); ?>
	<?php echo $form->errorSummary($model_mak_kon); ?>
	

	<div class="row">
		<?php echo $form->labelEx($model_rapat,'user_id'); ?>
		<?php echo $form->textField($model_rapat,'user_id'); ?>
		<?php echo $form->error($model_rapat,'user_id'); ?>
	</div>
	
	<div class="row">
		<?php echo $form->labelEx($model_mak_kon,'type_id'); ?>
		<?php echo $form->checkBoxList($model_mak_kon,'type_id',array('Nasi Box','Snack','Prasmanan','Lain-lain')); ?>
		<?php echo $form->labelEx($model_mak_kon,'quantity'); ?>		
		<?php echo $form->textField($model_mak_kon,'quantity')?>
		<?php echo $form->error($model_mak_kon,'type_id'); ?>
	</div>		
	
	<div class="row">
		<?php echo $form->labelEx($model_rapat,'date'); ?>
		<?php 
			$this->widget('application.extensions.timepicker.EJuiDateTimePicker',array(
		    'model'=>$model_rapat,
		    'attribute'=>'date',
		    'options'=>array(
		        'hourGrid' => 4,
		        'hourMin' => 9,
		        'hourMax' => 17,
		        'timeFormat' => 'h:m',
		        'changeMonth' => true,
		        'changeYear' => false,
		        ),
		   ));  
		?>
		<?php echo $form->error($model_rapat,'date'); ?>
	</div>
	<div class="row">
		<?php echo $form->labelEx($model_rapat,'name'); ?>
		<?php echo $form->textField($model_rapat,'name'); ?>
		<?php echo $form->error($model_rapat,'name'); ?>
	</div>
	
	<div class="row">
		<?php echo $form->labelEx($model_rapat,'room_id'); ?>
		<?php echo $form->textField($model_rapat,'room_id'); ?>
		<?php echo $form->error($model_rapat,'room_id'); ?>
	</div>	
	
	<div class="row">
		<?php echo $form->labelEx($model_rapat,'message'); ?>
		<?php echo $form->textArea($model_rapat,'message'); ?>
		
	<?php echo $form->error($model_rapat,'message'); ?>
	</div>					

	<div class="row buttons">
		<?php echo CHtml::submitButton('Submit'); ?>
	</div>

<?php $this->endWidget(); ?>



</div><!-- form -->